package com.neusoft.elm.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.neusoft.elm.po.OrderDetailet;
import com.neusoft.elm.service.OrderDetailetService;
import com.neusoft.elm.service.impl.OrderDetailetServiceImpl;

public class OrderDetailetController {
    public Object listOrderDetailetByOrderId(HttpServletRequest request, HttpServletResponse response) throws Exception {
        Integer orderId = Integer.valueOf(request.getParameter("orderId"));
        OrderDetailetService service = new OrderDetailetServiceImpl();
        List<OrderDetailet> list = service.listOrderDetailetByOrderId(orderId);
        return list;
    }
}